package com.tobe.spring_demo.declarative_transaction.one;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.tobe.spring_demo.mybatis.mapper.MyInterface;

/**
 * @author yangqifan 2015年9月10日
 * 
 */
public class DeclarSpring1Test {
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-config-program-transaction-1.xml");
		
		
		UserService service = (UserService) context.getBean("transactionProxyFactoryBean");
		
		service.a();
	}

}

